Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closing all indices doesn't work when using wildcard only #4564

Closed
javanna opened this issue Dec 28, 2013 · 0 comments · Fixed by #4606
Closed

Closing all indices doesn't work when using wildcard only #4564

javanna opened this issue Dec 28, 2013 · 0 comments · Fixed by #4606
Assignees

Comments

@javanna
Copy link
Member

javanna commented Dec 28, 2013

Closing all indices doesnt' work when doing:

curl -XPOST localhost:9200/*/_close

although it works using _all or using a wildcard expression like index*.

@ghost ghost assigned javanna Dec 28, 2013
@javanna javanna closed this as completed in 6c23ace Jan 8, 2014
brusic pushed a commit to brusic/elasticsearch that referenced this issue Jan 19, 2014
Named wildcards were not always properly replaced with proper values by PathTrie.
Delete index (curl -XDELETE localhost:9200/*) worked anyway as the named wildcard is the last path element (and even if {index} didn't get replaced with '*', the empty string would have mapped to all indices anyway). When the named wildcard wasn't the last path element (e.g. curl -XPOST localhost:29200/*/_close), the variable didn't get replaced with the current '*' value, but with the empty string, which leads to an error as empty index is not allowed by open/close index.

Closes elastic#4564
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant